package com.ysd.modules.app.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysd.modules.app.entity.OptionsRecordsEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author ky
 * @Date 2021/07/13
 * 选项记录
 */
@Mapper
public interface OptionsRecordsDao extends BaseMapper<OptionsRecordsEntity> {

    /**
     * 昨天刷题数量
     *
     * @param map
     * @return
     */
    int getYesterdayNum(Map<String, Object> map);

    /**
     * 根据课程和学生查询总错题数
     *
     * @param map
     * @return
     */
    int getWrongSum(Map<String, Object> map);

    /**
     * 获取错误信息
     * @param map
     * @return
     */
    List<Map<String, Object>> getWrongInfo(Map<String, Object> map);
}
